That should help

But not sure it will fix the leaky behavior. Let's see.
Merge pull request #2 from PEM--/patch-1

That should help