def GUI_app_close(n_clicks): if n_clicks != 0: system.close() return u'closed'
def API_close(): system.close() return jsonify({'message': 'Webbrowser closed', 'rc': 0})