For your specific question... see post #2.
But honestly, you should keep a cool head instead of just reverting to an automated flight mode if you lose track of your drone.
Just release the stick as a first step, then switch over to the DJI Fly...
I've never flown in complete darkness but have used RTH to land my drone in twilight conditions long after sunset. No need to adjust RTH altitude if it's already set to clear local obstructions. Trees and powerlines don't get higher at night...
Situation: A dangerous dead branch sitting on another about 30 ft up above a driveway which constitute a huge hazard.
A ladder was out of the question even if one that long was available. Consequently, I used the DJI NEO to carry a fishing line...