Error 3704: Operation is not allowed when the object is closed.