Added functionality for kinect unplugging during