Move trace of cap delete from shutdownCapability to freeCapability