Fixed threading bugs in NiKinect and Webcam causing problems at app shutdown