Unless I'm missing it as part of existing APIs in the framework, there is no way to support the exit-app EPC command?
Can see this line in the RTA codebase:
// We always append a param as if none is passed and the application is already running it will not restart the application params['RTA_LAUNCH'] = 1;
Can find no Roku docs to explain this param's usage.
Having the ability to use the EPC command exit-app and being able to track if the channel is running with Instant Resume enabled and running in backgrounded mode (Suspended) via the EPC query/app-state/<appId> API would be a nice addition to RTA.