Catch the except when the command is unknown.