A surety for the prosecution or defense of any suit in law or equity may be released from such suretyship by giving five (5) days’ notice to the surety’s principal, if in the state, and to the surety’s attorney, if out of the state, of the surety’s intention to move for a rule upon the surety to give counter security to provide indemnity for any liability as a surety.