Remove done stuff to avoid memory leaks