Changed how the socket connection is initialized.

Did this to get rid of a "Starting thread in constructor" warning.