Replace `RuntimeError` with a subclass of StandardError with a more specific name or maybe use `IOError`?