IRC fix

the provider needs to stop before we clear the buffer otherwise there could be a leak