add explicit garbage collect on terminate of process handling large binaries