Using a socket and asyncstreams to communicate with another app on a separate box. All good until the upstream process goes away, then my client logs a java.net.SocketException: connection reset error. How do I trap that so I can do something graceful? Neither the stream_error nor _terminated event fires in this situation and the socket doesn't seem to have any events to tell me about it.