Override default MiddlewareListener