ofxGui: fix unregister events on destruction. Closes #2594