enabled logging in send_initial_query and receive message on socket for expected response errors