Replace 'goto' error handling with KJ_DEFER.