Unlock Registry mutex even in case of panic.
Merge pull request #5 from AlekSi/master

Unlock Registry mutex even in case of panic