Protect your program form being closed by the user.