Close socket descriptor if bind() fails.