Fixed bugs in socket hook, used util instead of _ in hook prototype.