Adding some Logging output in case of failures.