Added a way to stop tha planner