Adding remote address and port to the error message in case of errors in...

... afterWrite and onRead functions, to track unhandled exceptions originating from these functions.