close output file stream