Fixed segfault on closing program after interpretation on 2D model.