Destroy cgsems used after transfers to not leave open files on osx.
Merge branch 'master' of github.com:ckolivas/cgminer
Perform sync transfers on shutdown to allow final transfers to complete.
Merge pull request #508 from kanoi/master

klondike rewrite work control