Changed close() to stop() for services