I have a Console application that has many worker threads. I don't think that it's a good idea to close an application before closing the worker threads.
So is there a way to know when a Console application is about to close so I can send a message to the worker threads asking them to close themselves?