hmm. true... I moved the logic for shutdowns into the main monitoring_agent class.