Have you checked for any codes? Did you loose electronics when this happened?
I think id look into your relays first, how to test them is on page 465 in the xb9 service manual. If it dies like that again immediate turn the key off and back on to see if the pump primes and will fire back up.