Task 2: Catching crashes.