(check_for_running_agent): New.