At some point, stop trying to connect to a database that is currently closing (to avoid endless running tests)