Fix grid handling a bit.
Exit renderer