Log exceptions correctly with LibLog