improved NamedMutex/Event error diagnostics