keep server instance in a unique_ptr

tracking PR