Add a destroy callback to entity.
Remove build ghosts when a factory is destroyed.