Reconnect a tcp stream when it goes down.