improve socket close traces