Undeprecate error handler and fix call to binary error handler