raising error when not all actions are executed