add atexit method to shutdown openni & nite