Write log entry on exception.
Corrected field order in log output⁄.