private static bool ConsoleCtrlCheck(CtrlTypes ctrlType) { if (client != null) { logger.Info("Caught signal. Terminating IPC client..."); client.StopRunning(); } return(true); }