Server gracefully closing implemented.