cleanup of the glass interface.