Adding server shutdown event (issue #9).