server shutdown prototype