The liability of the surety or sureties shall not be affected by the death of principal, or by his appointment to a post different from that which he held when the bond was executed, but shall continue so long as the Principal occupies any post in which security is required and until his bond is cancelled. ...