Catch and print command lookup exceptions