ottimo!!
in entrambi sia
p.CloseMainWindow()
che
p.Kill()
eseguono la chiusura.
Grazie mille!