stops to firebase