Avoid ResourceWarnings.