Removes portion that seems to hang exit occasionally.