Test for shutdown event handler recovery