he had learned his lesson in that regard when laurence had been imprisoned for treason : the british had put laurence into prison on the goliath , supposedly safe ; temeraire had gone into the breeding grounds believing it ; and then napoleon had invaded and the ship had been sunk .