Failure handling support for the DataLoader

Creating the failure path in DataLoader. Tested in Local mode