Tidying up destruction of internals.