Fix graceful shutdown

Jetty uses StatisticsHandler to track outstanding requests for graceful
shutdown.

See https://bugs.eclipse.org/bugs/show_bug.cgi?id=420142 for more
details.
Add graceful shutdown test
Merge pull request #467 from vadims/graceful-shutdown

Fix graceful shutdown