finish server start and stop