TYRUS-334: When connection is closed by a peer, periodic heartbeat pong is not stopped
minor correction - using equals instead of == when comparing java.lang.Class.