introduces a delay so that scripts waits for all updates to firebase before exiting