Revert "Revert "try catch""

This reverts commit 2fa86ed6b6b65f604f3dd6a4f024b66c26f86741.