Tear down layers after ``post_mortem`` debugging is finished.