If the plaintiff fails to prosecute his complaint, or if upon trial or motion the plaintiff is found not entitled to possession of the premises, judgment shall be rendered for the defendant for his costs, which shall be taxed and collected in the same manner as other civil judgments for money in the same court.
MCL 600.5747