pre context in diamond-server

client NameServerMode=Off, shutdown bug fix