close inspector window if entity was destroyed