Added handling for local and remote snapshots on a rollback.