clearing the editor once the last tab is closed, closes #30