mediator cleanup