Added tcp example and fixed errors in AvoidAsync