Issue: error: the web browser has been closed before the completion of the process.
Solution: Uninstall UFile 2021. Then install it without any update patches. Download your CRA tax information. Then update to the latest patch.
Found it out when I remember I had no issue with previous version and uninstall and install to test.