Data environment is already unloaded (Error 1967)

The form is attempting to close tables as it shuts down.