force close pty on destroy