Data environment is already unloaded (Error 1967)
The form is attempting to close tables as it shuts down.
AutoCloseTables is set to true (.T.).
Don't programmatically close the data environment tables.
The CloseTables method is being called before the form is closed.
Set AutoCloseTables to false (.F.).