Added some more cases to send

I wasn't comfortable with th handling in send. I added cases for
running tasks and for performing wraps when there is currently no
outbound data left to send.