Restore connection when it is broken