Fixed non-exiting threads with cheap hack.