Bug fixes from Scott Schwartz.

Try to make 9term not crash when X errors happen.
4 files changed