ensure CAPI is release every time