Revamp of the Halibut error handling mechanism.