remove event machine