Add ack to all server modes and fix some memory leaks