Deal with system hang during disabling and enabling camera.