Added rescue to catch invalid keys and suggest the fix.