Some ssh clients don't send eof when detaching