socket exceptions modified