Fix NPE when no camera could be openned
Fix bug when the activity was paused and the camera synctask still runing in background. The camera was not properly released.