If any sheriff shall fail to execute or return final process in any civil suit or to pay over to the person entitled thereto, when demanded, money that has come into his hands as sheriff and shall be unable, on the return of a rule that may be issued against him, to show sufficient cause, he shall be liable to be attached for a contempt and committed to custody until he shall comply with the order of court.