throw exception for run, runLocally and uploadFile

Hello,

With run, runLocally and uploadFile, if an error occurs no exception thrown

This PR fix that