Tests, documentation and better error handling for windows service manager.