MIDI processing stops during screen lock

Hi everyone, I have a standalone app that uses a midi controller. It seems to stop processing MIDI events whenever the screensaver / screen lock is activated or when the display turns off. The controller I am using is connected via USB and the problem occurs on both Mac and PC.

Does anyone have any ideas?

Cheers,

Chris