Refactor code to better handle job information querying
incorporate code review comments: add warning for exception while querying job status
add back NPE check for runningJob.getID
minor refactor
Merge pull request #123 from aniket486/job_query_refactor

Refactor code to better handle job information querying