Place 'shutdown-agents' in the main function