cleanup

Cleans up any pending resolve or layout operations and resets the renderer state.