Fix up sign out and sockets.