Condensed try catch statement