Updated logging when something fails.