Fix ensure to unregister version guard.
Merge pull request #41 from chrisseaton/unregister-fixes

Fix ensure to unregister version guard.