Pyqt5 Closeevent Example