Refs #6315. Fixing a shutdown issue.