log after the error is handled
5.3.2