The ``shutdown = True`` line was preventing the stream from reconnecting after handling the error. Fixes issues #101, #145