Logger should work. Still did not managed to kill the threads.