retry on close socket