Closes this output stream and releases any system resources associated with the stream.
if an I/O error occurs.