Sylvain Viart wrote:
> Works, but I still don't know why the exception are not handled in the
> lib Net::SSH::Multi which may be specific to this lib.

Show the backtrace! Otherwise, nobody is going to be able to help you.

That is, in your original demo code, either remove the top-level rescue 
clause entirely, or change it to

 rescue Exception => e
    puts "main:#{e}\n#{e.backtrace.join("\n")}"
 end

Then paste the full, unedited result here.
-- 
Posted via http://www.ruby-forum.com/.