He was later wounded while serving aboard when taking a convoy out to China. He served at the capture of Java in 1811, and in 1813 distinguished himself while aboard when he helped in the rescue of the crew of a Swedish vessel. He finally retired from the navy with the rank of commander in 1842. He was subsequently awarded the Naval General Service Medal with two clasps for the actions he had served in during his naval career.