Added "FATAL ERROR - " to error handler
Added rtrim to sanitizeFile to remove last /