check difference of ray points and socket crash exception