Support shutting down workers simultaneously

GitHub: fixes #22

This change reduces shutdown time:

12 workers case:

  before: 9s
  after:  4s