spawning server via gui, terminating it at the end