Fix potential mc handle leak.