show proper error on connection refusal from server
Merge pull request #1 from adeel-raza/patch-1

show proper error on connection refusal from server