log when a command failed exception is created