When exiting wake up all threads at once