private void Quit <AdminMethod>(string nula, string nulb, string nulc)
 {
     try
     {
         Stregsystem.WriteToLogFile();
         UI.Close();
         return;
     }
     catch (System.IO.IOException e)
     {
         UI.DisplayGeneralError(e.Message);
     }
     catch
     {
         //hvis der ikke er noget at gøre så luk ui og crash
         UI.Close();
         throw new Exception();
     }
     return;
 }