title: How to detect exit for UWP
body: <p>Is there any way to detect current UWP <strong>going to exit</strong>?  (close by user or kill the process)</p>
  
  <p>I want to send some request to the server about the application will disconnect, also want to save some data before it exit.</p>