Clean up the exceptions that get thrown, make subclass instead of using RuntimeError.