Revert "error handler exposed"

This reverts commit fac18b081a2460b763ae0d217170ea846840f8ce.