Clean up resource file