Fixed bug when uniquity tries to scan an open socket

Also improved logging when irregular files are scanned,
and improved file handling
Fixed possible logical error

It may have been possible for files in the fileManager
with a size of zero to be considered 'non-existent'
Made error handling more robust in the hasher
moved model logging to model