Was the magistrate right to shut down the synagogue?