fix(core): stop leaked executor threads from pinning test classloaders (#2363)