Run event middleware