add kill me feature and fix autowire parent bean in current context