"K X" returned to duty on 24 February to patrol off Surabaya. During the Japanese invasion of Java she was damaged by depth charges and forced to return to port. On 2 March 1942 "K X" was scuttled at Surabaya to avoid being captured by the Japanese. "K X" was raised by the Japanese during the war and used as a floating oil hulk. Recovered by the Dutch after the war, she was scrapped at Surabaya in 1946.