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

throw exception for run, runLocally and uploadFile