wait between close and open