[Issue286] Add support for atomic file renaming

See #286.
Yes, 'log a warning' would be better, although I don't think the logging really needs to be included in the javadoc at all.