Add logs and flush client socket to send packet right away