Hey,
It sounds to me as if your condom protection was complete.
You lost your erection and withdrew and the condom was still on your penis yes?
If so you can relax there is virtually zero risk of condom protected sex for HIV.
Please follow up if not clear, or got something wrong.