Test if afterLastJobCallBack is run after shutdown

also sneaked in a fix for an async problem..