If you do not set comm = nil in the TvaTerminal, the terminal will show the file data being received.
It is unclear how you get the "List index out of bounds" exception. If a problem persists, please provide some sample source code so we can investigate this issue here.