Re-adding a little error handling to FileUtilities.