Made sure the connect method returns a Socket object.  Also added a connectIfNotAlreadyConnected method.