I only ever see this (from FreeBSD to Solaris) if I have a background job running when I try to log out. I just put this down to the background job having /dev/tty or STDIN or some other shared resource opened on the SSH link.