Prevent crash on dst initialization failure

Mark Andrews requested to merge dstlib-failure-abort-v9_16 into v9_16

server might be created, but not yet fully initialized, when fatal function is called. Check both server and task before attaching exclusive task.

(cherry picked from commit c5e7152c)

Merge request reports