Log exceptions as exceptions