If such collector shall fail to give such additional bond and security for ten days after he shall be required to do so by law, his office of collector shall be vacant.