But if the defendant shall be successful in any suit or other proceeding brought against him at the instance of the society, and shall be adjudged to recover his costs, he may elect to proceed to recover the same from the officer in whose name the suit shall be brought, or from the society, and in the latter case shall have process against the property of the said society in the manner above described.