This command during exit `system("su -c 'killall -9 org.kde.necessitas.example.EegViewer'");` will not work if the user is not running as root.