check for whether server is stopped