Release camera when hiding the app. Plus add a wakelock when the flash is active