[LIBREPORT PATCH 1/2] fixed exception handling - closes #173