Adding addtional handles for script failure during file upload