def closeEvent(self, event):
     """ closeEvent(event: QCloseEvent) -> None
     Only close if we save information
     
     """
     if self.closeEventHandler:
         if self.closeEventHandler(self):
             event.accept()
         else:
             event.ignore()
     else:
         #I think there's a problem with two pipeline views and the same
         #scene on Macs. After assigning a new scene just before deleting
         #seems to solve the problem
         self.peTab.annotatedPipelineView.setScene(QtGui.QGraphicsScene())
         return QDockContainer.closeEvent(self, event)