I must complete the problem definition.
i want that if i shutdown my pc or I logout then this closes cleanly the vm.
i found a solution in kde environment:
a script executed when logout "dock_android_shutdown.sh". this one take a snapshot of the vm (some kind of "hibernate") and close it.
a script executed when login "dock_android_startup.sh". this one launches the snapshot and put it in the systray. you must install kdocker and rdesktop.
a script to execute on demand the launching of the snapshot. if you want test the launching or the vm disappears.
a scipt to execute on demand the launching of rdesktop "dock_android_ondemand_rdesktop.sh" in case you close rdesktop instead of minimizing it.
I join these scripts if this may help.