[fix] Wrap sync write in a try call
[dist] sort things