Fix exception on logging

I'm just ignoring the exception here so it doesn't crash the app, we need a better solution.

Closes #969