shutdown server some tests fail fix