Sounds Like it could be a faulty Control Unit. If its happened before then it can only get worse. Best Bet is take it to your Audi Specialist and ask them to run a test on it. Could be a simple prob.
Best not sell it to your mate without it being checked out even if it started working again because you can imagine him ringing you up, You wouldnt hear the last of it, trust me, Ive been there mate.