warn ("ERROR for $host: $error\n") unless (defined($session));