Add logging for object deletion.