added restart logic to the twitter stream