Solved the issue of pcoketsphinx instance remains upon exit