fixed catch in mediator, refactoring process io catch