Exception handling added to dataset driver