You should place a general try-except Exception block around the main threads. These are long running and you cannot afford to lose them to some random exception