added exit code checking on the synapse calls, including checking for 1 instead of 0 on the getResultID synapse call