calling emit on destroy events