For some reason the snap-store install can fail if snap isn't available fast enough. Adding a retry should fix it.