export script exits when all other shreds have exited