Cleaner shutdown

Provide a shutdown mechanism which waits until IIn-flight reqests are drained.
This is a good point. I'll do that.