Add debug message.
End transaction immediately when no switch present.
Add test for dispatch to all switch but no switch exist.