Proper struct mg_connection cleanup in close_local_endpoint()