ouputStream close fix