tokens: As a result of his refusal to sign the oath of allegiance to the fascist government he was compelled to resign his university post and his membership of scientific academies , and , during the following years , he lived largely abroad , returning to Rome just before his death .