Improve receiveMessages() error and interrupt handling (3.5 backport)