Fly out along the path of least resistance (i.e. leave the way you came). Probably involves flying backwards. Since the mavic has no rearward or upward sensors, you should always be able to go backwards or up.
Also, use care when switching things off. Turning off VPS entirely would leave you...