Fix for a traceback when Thunderbird becomes unresponsive