Handle pwinty errors a little better