In some setup closing the xterm window only has the effect of deleting the pty.