Attempting to close once per minute is not enough in a situation where there's intermittent API outages. Once per seccond would increase the probability getting connectivity and exiting.