Fix IndexError SignalHandler.py handle()