Improve error handling on STHORM accelerator node in MCAPI back-end run-time

Since there is no exit(), instead of going on, display an error message
and loop for ever.
Added forgotten #include for STHORM platform.