Restore state change event handler to report stats and use state to update uptime (OMS-497)