Implemented auto-reconnect in default transporter (issue #1851)