Basic safe wrapper for xproto done and examples of how to use it