Added functionality to stop executors.