You might need to make your midi notes slightly shorter so that the ADSR has time to release. Kontakt can't solve this without introducing latency, since Midi notes don't carry a note length value (as you can play midi live).