Merge pull request #110 from l-korous/master

Update Hermes exceptions handling.
A workaround of weird behavior of OpenGL.