We should check for Solaris patch 117171-11 or 117172-11, since it fixes the bug where the pty subsystem can lose the final output prior to closing.