Fix potential mc handle leak.
Merge pull request #3 from jrconlin/master

Fix potential mc handle leak.