Added cleanUp to TerrainSys