Log if we hit the state transition check-safe

We're hitting the invalid state transition check, so log it.

It's a serious error, so we want to log it irrespective of what listeners are attached.