break loop on error to prevent zombie connections