avoid unneeded memory allocation on loader cancelation, it can grow a lot :/