https://www.easyezay.com/2022/12/Solve-the-problem-of-exiting-applications-automatically.html