close all threads on CTRL-C for linux
close all threads on CTRL-C for linux