Move error handler from package to instance.