Daemonized the socket thread; changes to auth