Created an exception handler and also updated the demo activity to register it at run time.