hotfix: do not crash when openpty fails.
release 0.2.2.