Tutto risolto e sistemato. il tread si puo anche chiudere. Grazie a chi mi ha aiutato