It seems to me that this needs to be included in DFP. At least DFP should return some sort of error message when it fails to complete an upload, otherwise how does the user or the developer know what is causing the page to fail.
Right now, it just returns to the same page and does nothing.