Add global onError callbacks to Firebase.