Made exit only for Android (iOS apps can't close themselves).