<div class="gmail_extra"><div class="gmail_quote"><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Also, unrelated to the problem above, I want to close everything correctly when a problem occurs, but it seems that dynamic wind does not do that in case of a break (e.g., if the exn handler is removed, an invalid operation will raise an exception, but the ports will not be closed). I may be misunderstanding what dynamic-wind does.<br>


What would be the &quot;right&quot; way to do things here?<br></blockquote><div><br><br></div></div>Ok... That&#39;s just because I used tcp-connect instead of tcp-connect/enable-break, as well as tcp-accept counterpart. Now that works fine.<br>

<br>Laurent<br></div>