Assange didn't "imprison himself." He had asylum, because the world's most powerful state was out to get him. It has even come out that the Trump administration seriously considered kidnapping or assassinating Assange. As it turns out, Assange's fears of being handed over to the US were 100% justified.