[fix] Ensure key exists before attempting to add methods to object in should send data macro
Added client and server objects to the  macro
[test] Added test to ensure all producers are removed when a client closes