Thanks for your reply.
Regarding to your question,
when user clicks the close button, our application needs to gracefully close the connection with our servers. This may take some time. That's why our application will run some more time in the background after clicking the close button.
Topic:
App & System Services
SubTopic:
Processes & Concurrency