session.closeWorkspace();
}
if (session.isRepositoryOpen()){
session.closeRepository();
}
session.killInterfaceProcess();
} catch (NotConnectedException e) {
log(IStatus.WARNING, "Error terminating repository interface", e);
} catch (CommandException e) {
log(IStatus.WARNING, "Error terminating repository interface", e);
}