raise event when heartbeat doesn't come from the server
OnErrorEvent handler example