Fix exception catch

On ruby-1.8.x Timeout::Error is subclass of Interrupt, not StandardError. So we should explicit catch Timeout::Error.