Verifying named clients in asynchronous handler and fixed a bug in get_client_unread_message_count