Handle Timeout::Error exceptions which are caught by ActiveRecord.