'Wrap methods to clear any message box they opened.'

@staticmethod
def wrapper(func):

    def wrapped(self, *args, **kwargs):
        try:
            self.prevent_timeouts()
            return func(self, *args, **kwargs)
        finally:
            self.used()
            self.handler.finished()
            self.creating_wallet = False
            self.msg = None
    return wrapped
