Set timeout to wait for the overlay to close to 30 sec and the check intervall to 1 sec.