Added more debug messages to object deletion.