Makes server easier to stop.