Clean up for the renderer API