try to handle sock errz