Crimes committed on board
Once the doors have been opened, it's a pretty clear case: the crime happens on some sovereign soil, and that country is responsible. They are also most likely to get custody of the criminal, which as described in the other answer is a large part of who prosecutes.