Merge pull request #9765 from s0undt3ch/2014.1

VT fixes
`child_fd` is not a file handle!
Check for boolean values first. Fixes #9742.

Instead of raising `RuntimeError`, raise `TerminalException`.