App now shuts down cleanly, moved ComponentDefinition into framework from engine, fixed crash with components being marked for deletion in the same frame as their owner object is destroyed.