On Dec 7, 2010, at 00:48 , Jes=FAs Gabriel y Gal=E1n wrote:

> In order to be more robust, the usual thing is to
> close the socket in an ensure block, so that even if there's an
> exception, the socket gets closed.

good catch. thanks