add wait_all_children_with_timeout method

It blocks until all worker processes exit or after `$timeout` seconds.
I think it is useful to implement graceful shutdown.

英語が不得意なのでおかしな点が御座いましたらご教示頂ければ幸いです。