socket shouldn't be closed for server unless called externally.