Title bar button event

Hi Guys
I want to detect if user has pressed close button on title bar , i mean here in standalone mode

Dose exist any event for that button ?? in c++ or blueprint
Thank you for regarding.