[~BUGFIX] reimplement the queue idea with shutdown function.