Avoid auto close socket