In any case the Department of Health and Social Services, in its discretion, may, instead of prosecuting a person, close the factory in which a violation of this chapter occurs and may cause all work therein to be discontinued until such violations are discontinued or until such changes as may be necessary to make the factory sanitary are made, as directed by the Department of Health and Social Services.