combine shutting_down flags