Run all code within a try statement