try {
// Search the items on this server.
runServer(s);
} finally {
// Disconnect from the server.
s.disconnect();
}
// after you are all of the properties are ok, do your thing
// with StarTeam. If there are any kind of exceptions then
// send the message to the project log.