Handle errors in Tab completion