Added error handling to twitch api

#144