Do close socket when 'close' is called
[doc] docstring in sql_queries