TestEngine: Shut down engine after running

Fixes a memory leak
test/grid: Clean up, remove useless code