Exit with non-zero status when checking headers.
Touch up log messages.
Add basic event support.