outputStream cleanup