Adding window-closed evnt to textgrids. Closes #30.