Remove existing chain on a snapshot-import log info instead of print log info instead of print Remove defer lock Remove defer lock, and explicitly close the lockedRepo instead