fixed serverSpec not closing server