test added
catch socket exception