make a stopServerEearly() method