seems to be shutdown race condition