Only try to set the terminal size if parent is a TTY
Catch all VT spawnign errors.

Fix the logging call and try to catch any errors occurring while
spawning the VT.
Make PyLint happier.
Merge pull request #9759 from s0undt3ch/develop

Some more VT fixes