Added file checking and kinect dispose logic