spawning server via gui, terminating it at the end

Utiliser std::unique_ptr ?