Fix #127, threads should not be cancelled after being joined