Cannot destroy active instance

You attempted to delete an instance of a class that is still in use in your program.

Record the error message number and contact IBM® Software Support.