ATC was the saving grace in this whole sorry episode. They picked up the aircraft's incorrect tracking immediately after take-off and then provided assistance to help the hapless crew get the aircraft back on the ground. The crew weren't able to do a visual approach back in to Sydney due to the weather, so ATC provided vectors all the way to Melbourne.