Clean up agents after on exit