Changed socket system to be more informative of issues.