In a raid, the Leave button lets you leave at any time after a quick confirm, and takes you back to where you were before you went in.
New1
Leave raid: in a raid, a Leave button takes the Town button’s place next to AUTO, and the raid bar’s Retreat becomes Leave. It shows what leaving now means (the reward chest, today’s first-clear reward, rewards left on the floor, where you’ll go) and leaves once you confirm
Improved1
Leaving a raid takes you back to the spot in the hunting ground, crypt or town you entered from, and after a clear, Take everything and leave collects the rewards left on the floor in one go (with a full bag it tells you and stays)