Cleaning up system after interruption.