Added custom socket to fix nothrow error