Added xterm auto-resize when running or getting SIGTERM.