Update SignalBot.py

add error handling to main