It always attacks you if it no longer needs you to reach the transponder = Commander Zhalk is dead
It is actually the most min maxed approach to kill the devils while keeping the MF alive, because when it turns hostile - it yields XP on death.