maintain_connection-contextmanager now works