Small fixes. Added action_failed event.