(PE-3198) Log exceptions in shutdown-on-error