Have you taken it to your dealer, may of thrown up a fault in diagnostics that might shed light on what caused it. For it to just cut out sounds electrical, possibly an immobiliser fault. Especially as it now appears to have corrected itself??
I'd get it in for diagnostic anyway.