engine : endAction run multiple times When RuntimeException occurs

When RuntimeException occurs at endAction, the
endAction part will be rerun over and over again

Change-Id: I50d7688c9f06ae90bed3d80c286534311f5afb1c
Bug-Url: https://bugzilla.redhat.com/999896
Signed-off-by: Ravi Nori <rnori@redhat.com>