trying to make client threaded for sending messages that can be null.