Fixed socket leak on request send error