Interrupt ThreadedCommandReader on shutdown and handle NPE appropriately.