Only log state transition for defined handlers.