clean up agent