Explicitly exit when caught a stop signal.