lean agent cleanup