catch and display exception in crash example