Just leave it offshore then? I’m fairly certain ‘outside of territorial waters’ is equivalent to ‘more than 25km from shore’. It can safely explode there. If the crew want to get taken off their sinking ship they are more than welcome.
It’s quite similar to a trojan horse.