Ensure the editor closes when the view using it is closed
Merge pull request #494 from Connexions/close-editor

EDITING: Ensure the Editor closes when its view is closed