Fixed initial connection issue

Will connect now, but still does not stay connected
Caused console to remain open even after connection closes
Corrected part or the PING/PONG issue