Make it possible to stop run loops.