handle runtime exception with the camera
tune behavior of this activity
fix some NPE cases