Task threads are not killed at exit