fixed segmentation fault in destroyNite2Device(int devID)