This test is flawed because it doesn't follow the normal test flow:
1: setup
2: action
3: assert 

You are doing assert and then you do a shutdown, and then you do more asserts. This means that you are testing 2 cases: the logic before the shutdown.. and the logic after the shutdown. So split this up in 2 different test methods.