Is there anything in the Windows event log when the application shuts down?