do not crash on onNotice received before registering, try to send periodic server pings