Handle exception as event