detect some pil errors on upload even after retry()

refs #79