Fix handling of task within SendAsync

Thanks to vchekan for pointing this one out.