stopping server when asked