[2.3.x] + Implement feature #1345
https://java.net/jira/browse/GRIZZLY-1345
"Graceful shutdown hook"
[2.3.x] + remove redundant code