Try to prevent the occasional ResourceWarning