private static bool Handler(CtrlType sig)
 {
     switch (sig)
     {
     case CtrlType.CTRL_C_EVENT:
     case CtrlType.CTRL_LOGOFF_EVENT:
     case CtrlType.CTRL_SHUTDOWN_EVENT:
     case CtrlType.CTRL_CLOSE_EVENT:
     default:
         eh.WriteLog("Applicatie afgebroken", EventLogEntryType.Warning, 400);
         return(false);
     }
 }