Log errors during command processing