Actions may be commenced upon any agreement in writing before the time for the performance of the contract expires, when the plaintiff or his or her agent shall make and file an affidavit with the clerk of the proper court, that the defendant is about to leave the state without performing or making provisions for the performance of the contract, taking with him or her property, moneys, credits, or effects subject to execution, with intent to defraud plaintiff.