You may be terminating the object created from the class module in your component project but is you class module terminating the form when it terminates?

That may be the cause of your problem.