https://www.macrodroidlink.com/macrostore?id=20269 You can modify and exclude apps you don't want to be closed by editing the excludedapps variable