Automatic connection and reconnection on network troubles.
Merge branch 'connection_fix' into master_nightly