Fix close logic