clean up Grid object