agents now removed correctly upon reaching exit