Fix #1979 #2002 , the problem was that we weren't catching the socket errors as known exceptions, thus ScanMustStopByUnknownReasonExc was raised and generated a crash to the user.