public static void shutdown() {
        boolean gotSQLExc = false;
        try {
            try{
            Class.forName(DRIVER_NAME);
            }catch (Exception e) {
                //Nothing
            }
            DriverManager.getConnection(SHUTDOWN_URL);
        } catch (SQLException se)  { 
           if ( se.getSQLState().equals("XJ015") ) {     
              gotSQLExc = true;
           }
        }
        if (!gotSQLExc) {
           Loggin.logConnectionFactory("embedded database did not shut down normally");
        }  else  {
           Loggin.logConnectionFactory("embedded database shut down normally");    
        }  
    }