fix unregistering actor on release
Merge pull request #2 from rpl/fix/unregister-actor-on-release

fix unregistering actor on release