port graceful close
eterm cleanup graceful
Merge branch 'master' of github.com:c-bik/eterm