Rule 9
SECTION 3 OUT OF BOUNDS
ART. 1 . . . A player shall not cause the ball to go out of bounds.
ART. 2 . . . A player shall not leave the floor for an unauthorized reason.
NOTE: The dribbler has committed a violation if he/she steps on or outside a boundary, even though he/she is not touching the ball while he/she is out of bounds.
PENALTY

Section 3) The ball is dead when the violation occurs and is awarded to the opponents for a throw-in from the designated out-of-bounds spot nearest the violation. (See 6-7-9 Exception 4)
The interupted dribble would not apply in this instance and therefore once reestablished there would be no violation.
I do not see leaving the floor to avoid contact with an opponent, provided the player returns immediately in approximately the same area, as an unauthorized reason.
Going OOB at the 3 point line and returning on the other side of the lane could be a problem, leaving at the 28 ft line in the back court and returning somewhere near the baseline and being 6 ft OOB is a problem