Fix missing error cleanup noticed by Derrell.