server: add 'shutdown' function

Signed-off-by: David Scott <dave.scott@citrix.com>