ensure all threads stop on Ctrl+C