Added proper error handling to compute_distance2line