Bug#404018: Break out of the `while (loop)'-loop when no socket can be opened.