Let CommandHooks know what the exception thrown is when a command failed