Remove the global stop_signal in favour of a per-thread