added server shutdown