emit end event after sharing