sistemata chiusura socket

Signed-off-by: Fons <lord.fontana@gmail.com>