use cgroups to track agents instead of kill

This addresses issue #2.