Add logErrors method to mediator

logErrors logs the exception in the console but allows the execution to
continue.