Handle close ionic windows app by 'X' button

A few questions:
How are you building this?
Are you using electron or something else?