to go away or back quickly, especially to avoid sth unpleasant
beat a (hasty) retreat
Definitions from the Oxford Advanced Learner's Dictionary, 9th edition