Emit end event, makes some things much easier