open net error event to detect disconnection