Additional AAG checking + shutdown function