War and the end of empire