Switch to thread.exit().