Core: cancel entire recovery if shard closes on target node during the recovery operations.

Closes #6645