Check for pending commits before each goal.