Maybe fix segfault in log_hook on Travis?