def _garbage_collect_connection(socket_instance):
 if (socket_instance is not None):
  quiet_shutdown(socket_instance)
  quiet_close(socket_instance)

def _garbage_collect_connection ( socket_instance ) : if ( socket_instance is not None ) : quiet_shutdown ( socket_instance ) quiet_close ( socket_instance )
closes the socket if auto_delete is true and the socket is opened .