Hi,,
Unfortunately, I think by design, when SSH closes channel it does not remeber anything from previouse execution.
Also, it seems by design , you cannot execute more then one command per channel.
So it seems you have two option, either execute them using semicolon or use Shell to execute your commands.
Thanks,
Oleg