finished server implementation. Quit works now as expected.