Dispatch action when an action has failed