Retry MongoDB connection if it fails at initialization