Hi all,
Please let me know how to catch the "exit" (x button in the top-right corner) so that I can ask whether or not user wants to quit.

Thank you.