add acceptance test for shutdown race condition