The way you'll stop the client cleanly is to delete the lock file. If the machine is shutting down you have to make sure it doesn't shutdown before the results have been uploaded (although this wouldn't be needed after the new version the client). Here I manage to do it http://www.free-dc.org/forum/showthr...?threadid=1819