Any surety, whether under a separate or joint bond, may withdraw from his suretyship, at any time, on his stating in writing, to the officer to whom the bond has been given, that he desire so to withdraw; and his responsibility under the bond shall cease, after sixty days from the date on which he gives such writing, as to all demands upon his P...