throw exception for run, runLocally and uploadFile
Merge pull request #19 from julienj/add-exceptions

throw exception for run, runLocally and uploadFile