Fixed call to exit application if flashlight not available on phone