Replace shutdownController with threading Event.