Function On-Agent-Cleanup

Part of:

package org.rl-community.rl-glue-codec
( on-agent-cleanup )
Handles the buffer operations for agent-cleanup.