bugfix: the stream-typed cosocket resolver handler did not handle some special errors correctly.