I believed to close an unsaved view without be prompted, you should do this:
window = sublime.active_window()
view = window.active_view()
view.set_scratch(True)
window.run_command('close')
but I keep seeing the window asking to save the file.
Did I miss something?