Fix crash when kinect gets disconnected.