Active removal of residual bubble nuclei following a cavitation event