force close the output stream