Always use runtime's err when logging top-level exception.

Fixes #1082.