public static void newMain(string[] args) { var srv = new DBServer(); try { srv.start(); } finally { srv.getLocks().Dispose(); } }