Managing Safety and Mission Completion via Collective Run-time Adaptation