Check return value of File.delete, log warning if file not deleted

Logging a warning if a file is not deleted seems safe and will help
locate cases where files are not being properly removed.
Adjust the suppression of format string uses newline to correct class