Added preshutdown notification support to service to deal with Issue 87. Also improved message filter support for eventlog.