Function BufferedIO.close

Close the buffered IO

void close ();

This flushes all outstanding writes, closes the underlying FD and releases the buffers.