"hanging" midi notes

Hello there!

In recording a friend’s keyboards, I also wanted to record the midi. But there’s always midi notes ‘hanging’ (ie. there seems to be ‘note off’ messages that don’t come through). These are completely random and are happening with different midi controllers he owns. Any ideas?

thanks in advance,

Stokki.