Cleanup before parallelise.