Fix segfault on Entity Destruction
Log now output as html