add try-catch to action callback