Quit Game node not working for android on UE 4.27.2

I am trying to quit my game on Android platform. I use quit game node. It does not working. I tried checking “ignoreplatformrestrictions” and did not make sense. I also tried different approaches on c++ ( FGenericPlatformMisc::RequestExit(true),FPlatformMisc::RequestExit(false); ) none of them worked.

Is there a solution for this?