elog: Process log records after exiting the application