How to keep track of rain with photon and deep sleep?

@ScruffR I’m seeing the Electron stay on (Status LED flashing Blue as if its trying to connect to the Particle Cloud) for 10-90 seconds after I call

System.sleep(D0, RISING,sleepInterval * 2, SLEEP_NETWORK_STANDBY);

I just figured it may have something to do with the new firmware that waits for the Particle Publish to be successfully sent. I figured maybe the Particle.connect could also prevent sleep from happening until it connects.

If I take the Particle.connect out it goes right to sleep with no delay.