release the mag_event module