loader*: Make prepare method resilient to error and origin visit status compliant
Following the post mortem, i also noticed that the loader-core's prepare
method can explode.
Thus not updating correctly the visit status, nor cleaning up correctly.
This is true for all our loaders.
Migrated from T985 (view on Phabricator)