it will close the connection and the idea was to still use `CancelledError`