Added a shutdown method to stop the readers. Renamed the thread_target method to _thread_target, because it shouldn't be called outside of the class.