Reset io service after stopping sync.
Sort txouts in the same transaction by ascending rather than descending tx index in TxModel.
Explicitly update the sync state to stopped if any exception is thrown by the synchronization code.