Improve the error handling for files. Now we got some more information if a file was not moved or deleted correctly. See #165