Close window on save