fix space leak in recordShutdown
Merge pull request #8 from JohnLato/master

fix space leak in recordShutdown