Editor closes when all tabs are closed