Fixed segfault on closing after interpretation on the real TRIK device