Fixed huge bug in socket creation, Chrome no longer dies horribly as a result.