removed some throw exception

added in custom handling to error out transaction and insert error log