Using `error` in a plugin causes a ghc panic. I should probably find out how to abort ghc with an error message in a proper way.