termination condition

generic send-receive behavior now allows to set a termination&resend
condition