thorn had concocted a wild idea in his mind of swimming across the old foss under the cover of the bridge , climbing the bulwark of the lock , setting fire to a barge that was in the canal , and then jumping off , allowing the river to carry him downstream to the wharf , where he would pull himself up and carry on with his mission while the police were distracted with the fire .