Electron prevent window close. on ('window-all-closed') are not working as intended.