Extract begin/rescue blocks to ErrorHandling helper