If any person or officer to whom such writ is directed refuses to receive it or neglects to obey and execute it as required, and no sufficient cause is shown therefor, he forfeits to the aggrieved party $400. The court or justice before whom the writ was returnable shall proceed forthwith by attachment as for a contempt, to compel obedience to the writ and to punish for the contempt.
14 M.R.S. § 5533