Close socket after ack