emit event when resources are removed