Added ability to retrieve socket error string for client