It's important to choose sides explicitly.
SideOnly prevents the GUI handler from being used on the server-side.
Thanks @cpw, for making that annotation type.