It's possible that the host tries to read a returnvalue after cancelling the guest, even if the guest memory was reset. This surfaces as error=Error("Unable to pop data from buffer: Stack pointer is out of bounds. Stack pointer: 8, Buffer size: 16384")
since there is nothing to pop since the memory is reset