// gracefull shutdown public void shutdown() { Utils.logMessage(this, Severity.WARN, "system shutdown requested."); try { connPool.closeAllConnections(); } catch (SQLException e) { Utils.logMessage(this, Severity.ERROR, "sql error returned from pool : " + e.getMessage()); } Utils.logMessage(this, Severity.INFO, "system gracefully shutdown."); System.exit(0); }