 There had been arguments and shouting matches between the mayor and some of his advisers; some top health officials had even threatened to resign if he refused to accept the need to close schools and businesses, according to several people familiar with the internal discussions.