clear curl handler after destroy