Added CameraManager class. Modified with_camera to handle unlock of dll_lock by exceptions.