added exception handling
Better logging. Stream via requests
Changed warning log msg
merged upstream changes.