Cleaning up GUI hooks.