Changing the release of camera from onStop to onDestroy