Resource handling management

Hi,
this is fix for [this issue](https://github.com/mohanraj-r/torrentparse/issues/4) I mentioned.


Bests,
Alessandro