It was almost certainly boarded and hijacked in mid flight by commandos who flew the plane to khazakstan where it was used to fake the shoot down of MH17.
Ok maybe almost certain is a bit strong but the aircraft maneuvered after losing contact along a path towards the open ocean pretty similar to one the captain had practiced on his flight simulator less than a month before. Not sure how an overheating battery pack would do that. http://nymag.com/daily/intelligencer/2016/07/mh370-pilot-fle...