Properly kill all threads and childs