fix shutdown order on close - broker may be gone before client