Set app state to failed when uploading the package fails [#41992297]