Manual garbage collection for sm