v3.2.1: 3.2.1 dont try to resize if we invalidated the fd (#43)
`ioctl TIOCSWINSZ failed: Bad file descriptor (os error 9)` makes me sad - js owns the fd so its safe to mark the fd as dead after the read stream derived from the pty fd ends - after the fd is dead, dont try to resize