close outputstream before load