Added Errno::ETIMEDOUT to rescue clause.