When my application is closed by the user, I want to shutdown the system also. How to go for it??