is not really necessary, but in some cases closing the socket can cause errors.