Exception cleanup.