throw exception for run, runLocally and uploadFile

I'm sorry,

There an error in my last PR.
This PR fix that