Fix issue #17 in other way, with some code clenaup, and more robust
message handling.
Some eventviewer adjustment.