Ciao,
credo che per poter avere un po d'aiuto dovbresti postare un po' di codice... per esempio come chiudi il tuo programma