handling disconnections & stability fixes
doesn't include ping/pong mechanism though