Put all executable code in try-catch.