close window instead of switch to old buffer