Make sure to flush the vt term

@s0undt3ch isalive does not seem to wait for the recv buffer to
empy out, so we need to manually flush it here. Let me know if you
know of a better way to do this
Merge pull request #15934 from thatch45/ssh_flush_vt

Make sure to flush the vt term