fixes #1488
log exception in OOM after shutdown