Exit policy of pool is now configurable

When the pool must exit, the option of draining the task queue or not is configurable.
Updated readme and example to reflect this.