I have Console application. How can I handle closing of the Concole window ?