Fix thrown exception

Fixes "Call to undefined function RuntimeException()"
Merge pull request #177 from deizel/patch-1

Fix thrown exception