He was eventually captured by Xufal D'uat, a bounty hunter. Hamaz bargained for his release, when the bounty hunter surprisingly realized that an Imperial had been captured. D'uat, as part of the bargain, insisted on a recorded confession of Hamaz's crimes. This was done as insurance in case the Imperial double-crossed the bounty hunter. Hamaz confessed, and he was let go.
Later, Hamaz hired another bounty hunter to successfully kill D'uat. He was unable to recover the recorded confession, however.