Looks like quit() is the real method.

... whereas close() just closes the current window