added QtGui.QMainWindow.closeEvent() to make sure the close event

cascades closeEvents up properly.

issue #1676

I am not sure if there is a testable issue that shows up with out this patch, but this my understanding of good practice when over-riding functions in sub-classed QT classes.  

I will look for any issues that show up without this.