Rework to combine common code for starting/stopping a server. Create an interface for servers.