Add INVALID_SERIALID error
Add debugging messages
Fix duplicate broadcast handler bug