Close window with effects