print javascript exceptions in a qwebview to the console,sys.exit(app.exec_())