Block callback for message,event and JSON handlers