Test rig cleanup.