Better handling of odd situations in pP.py

Don't explode if failed = False and folder = True
Merge branch 'failed-download-handling' into development-custom