Close the window after Put