If have an application that exists on the system tray, however if you try to shutdown windows while this application is not closed, windows hangs.

Just wondering is there anyway to handle this gracefully


Cheers