Attempt to reconnect twice in the event of network issues.