// returns true if DB was running static bool shutDownDB(S dbID) { RemoteDB db = connectToDBOpt(dbID); if (db != null) { print("Shutting down DB " + dbID + "..."); db.xshutdown(); db.close(); print("DB shut down."); true; } else { print("DB not running."); false; } }