fix behaviour of logging exceptions in the crashlogger