Fixed|ResourceSystem: Clearing material resources on shutdown