How to avoid engine destroy the character when player leave or get disconnect

I try that code, and compile but not work.
DestroyActor isn’t called neither when Quit, Close Window, (suppose but not test Network error its the same)