add error handling when _setup_util.py fails, e.g. due to disk full (fix #561)

@tfoote @wjwwood Please review.