Add a test for shutdown being called twice.  Unfortunately it hangs rather than fails.