def METHOD_NAME():
    """When an event of compilation finishes (meaning that there's no more circuits to
    compile), this function will be called, unsubscribing from all events and
    finishing the progress bar."""
    self.unsubscribe("terra.parallel.start", _initialize_progress_bar)
    self.unsubscribe("terra.parallel.done", _update_progress_bar)
    self.unsubscribe("terra.parallel.finish", METHOD_NAME)
    self.finished()