Add CONSUL_SECURITY_KEY to write_event_handler_result.