On action add retries

Added verification to ensure that agent is alive before being used by other actions.