close outputstream as well