XD-1938: Prevent shell crash in completion

Granted this is a catchall for any exception that could occur.  But we probably want to log it as a debug, so that in the future we can catch specific exceptions.