Log any unexpected error that causes EM to exit

[#73989144]

Signed-off-by: Michael Fraenkel <fraenkel@us.ibm.com>