Error handling added for proper thread finalizing. Input check added for incoming hpfeeds data. 1 sec timeout used for Queue.get functions.