Hi, Thanks for the reply. I did try the same thing and I noticed it works. I really don't know what I'm doing wrong in my code. Same thing happens when I try to catch Errno::ETIMEDOUT. Even when I make my own Exception class it does work as expected, but not for these 2 exception types. Tiberiu