Proper server shutdown.