fix/body_close Close body only if connection successful