Ensure destructor of OutputStream does not throw