Added a failing test for the race condition in shutdown