Retry connections to firebase in case it drops