Bug#404018: Close the file descriptor when binding to a socket fails.