Fixes #97.
Merge pull request #106 from frmwrk123/fix/IllegalExceptionCounter

Fixes #97.