Wrap block set in try catch