- catch socket exceptions