Give calling application a chance to recover if we fail to reach during batch call. Correct formatting.

Hi this relates to error handling on issue #18. Also formatted some white space to keep it consistent.