Catch pymongo.errors.ConnectionFailure when trying to connect and retry
forever with a 1 seconds sleep in between retries.