log error, if fatal exception throw