Go implementation of a worker pool with graceful shutdown