Fix TestSendSignals.py on Linux. The wrong stop reason was being set when stopping for a received signal.