Added Window Listener to PARootView

- Closing application using Alt+F4 or other ways instead of closing
through exit function of application