Later, he was jailed in the East Indies by the Dutch on charges of fomenting rebellion, was sentenced to death, but managed to escape from Waltevreden Prison in Java.
Kemudian, ia ditahan di Hindia Belanda atas tuduhan memajukan pemberontakan, namun melarikan diri dari penjaranya di Pulau Jawa.