A wrapper for a socket that makes new socket connections for every request and closes the connection after a request. making it thread safe.