added exception handling for the device curl call.
Merge pull request #442 from subh007/master

added exception handling for the device curl call in the circuitpusher app.