explicitly closed the BufferedOutputStreams