handle memory leaks

In regards to https://rt.cpan.org/Public/Bug/Display.html?id=93693
It's probably not that surprising that there's some real leaks in this module, expecially $my->{$self} = ...

attached is an implementation of a reset() method to clear the memory.