close(Stream, Options) closes the stream Stream and performs some additional tasks, depending on what value Options is bound to.
close accepts a list of options as its last argument. These options are: