Added correct implementation of killing server from client