Garbage collect after each command