rtapi/msgd: explicitly shut down rtapi_app if exiting

there is no point in rtapi_app continuing if rtapi_msgd exits for some reason.
This closes the situation where rtapi_msgd exits and rtapi_app hangs
around, giving troubles on next startup.