YD: Added type attribute to Entity, added logging when runnable entity lifecycle event chaining fails.