failoverServer = new StandbyServer(
options.has(port)? options.valueOf(port) : defaultPort,
store,
admissibleSlaves.toArray(new String[0]),
options.has(secure) && options.valueOf(secure));
failoverServer.startAndWait();
} finally {
if (store != null) {
store.close();
}
if (failoverServer != null) {