kill threads on ctrl-c