void Server::stop() { IThread* pThread = getThreadThrowIfNotStarted(); if ( ! pThread->isAlive() ) { cleanUp(); } else { runnable->getWindowController()->close(); } }