This may be so for the armed services, but I can find no evidence that civilians swore an oath to die for the Emperor. That said, please correct me and provide evidence if I am wrong.