put in more error check for delete

there seems to be an unhandled exception there. See if you guys et the
same thing