with the aircraft heading off into the wild blue yonder on whatever heading/track was last selected on the MCP?
Now, what remains is to explain why the aircraft changed heading many times and why it made those turns in places which are far removed from any alternate airports. You have to be much more specific to have viable hypothesis.