auto-quit an auto-spawned sema when scripts are all quit.