Add exitApp method.