Closed editor when resource is deleted