#665 support multiple open files with the same basename. Always clean up backups on window close