Add error handling in Sohoa
Merge pull request #49 from guiled/error_detection

Error detection