Use client side queueing to make sure your messages are not lost when UM is down or unavailable.
This is a setting that you can find on the messaging connection alias (or useCSQ in case of pub.jms service) and the messages are persisted in the file based derby dB on your integration server when IS can’t reach UM.
Read Administration and pub sub guide for more details.