exception handling fix around deleted records

exception handling fix around deleted records