Wrap whole program in try-catch