added server shutdown message and working restart