Adds error handling to the twitter call.