File Scanner update

Remove unused code.
Ensure library sending finishes.