A monitor program used to detect whether windows service is shutdown.