Write exception in logger if message can not be decoded