[Debugging] Make socket perror() calls more informative.