[Core] Fixing PONG sending. Added quit method