Cleanup the resources mess (sorry I’m tired).