Workaround for InvalidMemoryOperation on testing exit.