APT : preliminary support for exiting app