public static void Main()
        {
            //todo: load as config option
            listener = new TcpListener(IPAddress.Parse("192.168.20.148"), 25);
            listener.Start();
            while (!stopRunner)
            {
                try
                {
                    var client = listener.AcceptTcpClient();
                    if (stopRunner)
                    {
                        break;
                    }

                    ParadoxNotificationListener handler = new ParadoxNotificationListener(client);
                    Thread thread = new Thread(handler.Run);
                    thread.Start();
                }
                catch (Exception)
                {
                    // catches as exception from calling listner.Stop outside of current thread.
                }
            }
        }
        public static void Main()
        {
            //todo: load as config option
            listener = new TcpListener(IPAddress.Parse("192.168.20.148"), 25);
            listener.Start();
            while (!stopRunner)
            {
                try
                {
                    var client = listener.AcceptTcpClient();
                    if (stopRunner)
                        break;

                    ParadoxNotificationListener handler = new ParadoxNotificationListener(client);
                    Thread thread = new Thread(handler.Run);
                    thread.Start();
                }
                catch (Exception)
                {
                    // catches as exception from calling listner.Stop outside of current thread.    
                }

            }
        }