Try to prevent the occasional ResourceWarning
Merge pull request #75 from sigmavirus24/bug/28

Try to prevent the occasional ResourceWarning