Raise a subclass of StandardError rather than Exception. Fixes #18