打退堂鼓

Verb

 * 1)  to beat the drum before the magistrate withdraws from the court
 * 2)  to beat a retreat; to give up halfway