Cooperation in astronomy under strains of war