close socket if bind fails to fix coverity leak issues
Merge pull request #1208 from mzealey/nonexist-fail-bind-fix-leak

close socket if bind fails to fix coverity leak issues