Log the failed command