fix onClose function for UAbstractWindow

this caused UScoreEditorGUI's to keep all controllers after closing the
window, making it impossible to play the UScore (or folder event) after
closing the editor window.