Tells the server when the app is closed