added more descriptive error message in case of socket connection being refused.