Why not move this up as well and crash when shutdown is true.