Catch possible exceptions that could occur when scanning files/directories
Small project setting tweak