A surety insurer may be released from its liability on the same terms and conditions as are provided by law for the release of individuals as sureties.