leave, go off, etc. with your tail between your legs idiom
(因失败或犯错)夹着尾巴离开,灰溜溜地离开,垂头丧气地走开
to leave, feeling ashamed and embarrassed because you have failed or made a mistake
The losing team went off with their tails between their legs. 失利的球队夹着尾巴灰溜溜地走了。