It very Islamic to closed Masjid as a result of any kind of pandemic disease like coronavirus. Islam valued Muslims live, and there are abundant of teachings of the Prophet Muhammad urged Muslims to pray at home because of pandemic disease like.
If the intention is that whether or not this closure of mosques conforms to Islamic law, then the answer is yes and God knows best, because if it is proven that infection from the Corona virus is spread by air, sneezing and coughing, it does not guarantee the spread of infection among the worshipers because mosques are closed places as is known and there is a jurisprudential rule that says : No harm or harm in the sense that if you are injured or suspect that you have been injured, just as you do not want anyone to harm you, then it is not permissible for you to harm anyone