Exception.
Added missing try/catch to catch an exception rasied if a socket was closed while trying to write data to it.

	modified:   SubControl.cpp
	modified:   SubProtocol.cpp
	modified:   SubProtocol.h