Client side threading issues resolved

Running the debug client was never a problem but in release, we would
connect so quickly to the gateway that the client state would be bad
preventing packets from being processed.