Close socket

@gsoltis added a disconnecting state and close socket on ack for close