Mai/Svetlana: add fail and success event handlers