Wrap GUI things in a GUI guard