add a hook to the workers for delayed shutdown, apn delibvery is the uses case for mass sending to be finished
Updated docs, minor bugfixes