MidiInput release

Hi All,
I’m new to this forum, and have implemented an OSC based VST host server, with VST3 plugin clients.
I’m trying to release the midi input so that other applications can use it.
However, the only way I seem to be able to release a midiInput is by closing the app itself. I’m using the following code, which doesn’t release the midi input:
In class Private:
std::unique_ptrjuce::MidiInput midiInput; // MIDI Input object


In method:
	// Close the MIDI input device
	if (midiInput != nullptr)
	{
		midiInput->stop();
		midiInput.reset();

		DBG("MIDI Input Closed");
	}

should have added that I’m on juce 8

OK - switching to the older JUCE_USE_WINRT_MIDI=0 made it release the midi input port. Perhaps a bug therefore in Juce 8.