Handling exceptions in jedi_completer thread