Clean up for restart.