Resetting $msgOutputLevel on shutdown.
Merge pull request #331 from jzaeske/fix_1147

Fixes #1147 - Resetting $msgOutputLevel on shutdown.