Restruct datastruct of httpd. Clean all sockets when finishing.