Fixed the bug of the Segmentation fault and multiple threads for same function during killing of ros process