Make server quits after client disconnected.