'Perform actions before parent main window is closed.
Return True or False whether the plugin may be closed immediately or
not
Note: returned value is ignored if *cancelable* is False'

def closing_plugin(self, cancelable=False):

    return True
