pyterm: fix exit behavior if twisted is not available
Merge pull request #1582 from N8Fear/fix_pyterm_twisted

pyterm: fix exit behavior if twisted is not available